package cn.edu.usts;

import cn.edu.usts.service.serviceImpl.UserServiceImpl;
import com.sun.xml.internal.ws.api.BindingID;
import com.sun.xml.internal.ws.transport.http.server.EndpointImpl;

public class Server {
    public static void main(String[] args) {

        EndpointImpl endpoint = new EndpointImpl(BindingID.SOAP12_HTTP, new UserServiceImpl());


        //设置服务地址
        endpoint.publish("http://localhost:8081/ws/userService");

        System.out.println("发布服务成功");
    }
}
